package ERROR;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * @author:谢君臣
 * @Date:2021/9/4-10:18
 * @version:1.0
 * @function:
 */
public class Exception分类 {
    public static void main(String[] args) {
        File file = new File("E:\\Study\\基础\\Java基础\\pom.xml");
        FileInputStream inputStream = null;
        try {
            inputStream = new FileInputStream(file);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
        byte[] bytes = new byte[1024];
        try {
            inputStream.read(bytes);
        } catch (IOException e) {
            e.printStackTrace();
        }
        System.out.println(new String(bytes));
    }
}
